package com.cafuc.entity;

import javax.xml.bind.Element;
import java.lang.annotation.*;

//定义元注解
@Documented
@Target(value = {ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
@Inherited
public @interface MyAnnotation {
    //定义注解参数
    int type() default 0; //MyAnnotation的第一个参数是 type，它的类型是 int ，默认值是0
    String value() default "";
    ImageType imagetype() default ImageType.BIG_IMAGE;

    String[] cities() default {"chengdu", "chongqing"};

}
